<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('goodsbackup/index')}">列表</a></li>
			<li><a href="{:url('goodsbackup/add')}">添加属性</a></li>
		</ul>
        <form class="well form-inline margin-top-20" method="post" action="{:url('goodsbackup/index')}">
			属性名称:
            <input type="text" class="form-control" name="state_name" style="width: 120px;" value="{:input('request.state_name/s','')}" placeholder="请输入属性名称}">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('goodsbackup/index')}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">ID</th>
					<th>属性名称</th>
					<th>状态</th>
					<th>时间</th>
					<th>店铺</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="data" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.state_name}</td>
					<td>{$vo.status_name}</td>
					<td>{$vo.c_time|date='Y-m-d H:i:s',###}</td>
					<td>{$vo.shop_name}</td>
					<td>
						<if condition="$vo['status'] eq 1">
							<a class="js-ajax-dialog-btn"
							   href="{:url('goodsbackup/upStatus',['id'=>$vo['id'],'status'=>0])}">禁用</a>
							<else/>
							<a class="js-ajax-dialog-btn"
							   href="{:url('goodsbackup/upStatus',['id'=>$vo['id'] ,'status'=>1])}">启用</a>
						</if>
						<a href="{:url('goodsbackup/detail',array('id'=>$vo.id))}">修改</a>
						<a href="{:url('goodsbackup/del',array('id'=>$vo.id))}">删除</a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>